#ifndef PLAYER_H
#define PLAYER_H

#include "one_card.h"

struct player {
    card *cards;
    int card_count;
    int score;
    int id;
    struct player *neighbour[2];
};

void player_init(struct player *p);

card player_pop_card(struct player *p);

bool player_choose_card(struct player *p, card c);

bool player_can_pop(struct player *p, card last_card, int force_draw);

void player_push_card(struct player *p, card c);

void player_destroy(struct player *player);

#endif
